<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
		<script type="text/javascript">
			if("<?php echo ($code); ?>"==""){
				location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=<?php echo ($appid); ?>&redirect_uri=<?php echo ($url); ?>&response_type=code&scope=snsapi_base&state=1#wechat_redirect";
			}
		</script>
		<style type="text/css">
			body{
				background: #FFFFFF;
			}
		</style>
	</head>
	<!--http://ljy-yt.tunnel.qydev.com/weixi/index.php/Home/Index/wxlogin-->
	<!--<body>-->
		<!--<h1>openid:<?php echo ($openid); ?></h1>-->
		<!--<h1>appid:<?php echo ($appid); ?></h1>-->
		<!--<h1>url:<?php echo ($url); ?></h1> -->
		<!--<h1>code:<?php echo ($code); ?></h1>-->
		
	</body>
</html>